<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Ming (flash)</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="harudestination.setxyz.html">HaruDestination::setXYZ</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.ming.html">简介</a></div>
 <div class="up"><a href="refs.utilspec.nontext.html">非文本内容的 MIME 输出</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="book.ming" class="book">
 <h1 class="title">Ming (flash)</h1>
 
 
 
 
 
 
 







 





 






 


 




 


 


 


 


 





 





 





 





 





 





 





 




 




 





 





 





 





 





 




 






<ul class="chunklist chunklist_book"><li><a href="intro.ming.html">简介</a></li><li><a href="ming.setup.html">安装／配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="ming.requirements.html">需求</a></li><li><a href="ming.install.html">安装</a></li><li><a href="ming.configuration.html">运行时配置</a></li><li><a href="ming.resources.html">资源类型</a></li></ul></li><li><a href="ming.constants.html">预定义常量</a></li><li><a href="ming.examples.html">范例</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="ming.examples.swfaction.html">SWFAction Examples</a></li><li><a href="ming.examples.swfsprite-basic.html">SWFSPrite basic examples</a></li></ul></li><li><a href="ref.ming.html">Ming 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.ming-keypress.html">ming_keypress</a> — Returns the action flag for keyPress(char)</li><li><a href="function.ming-setcubicthreshold.html">ming_setcubicthreshold</a> — Set cubic threshold</li><li><a href="function.ming-setscale.html">ming_setscale</a> — Set the global scaling factor.</li><li><a href="function.ming-setswfcompression.html">ming_setswfcompression</a> — Sets the SWF output compression</li><li><a href="function.ming-useconstants.html">ming_useconstants</a> — Use constant pool</li><li><a href="function.ming-useswfversion.html">ming_useswfversion</a> — Sets the SWF version</li></ul></li><li><a href="class.swfaction.html">SWFAction</a> — The SWFAction class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfaction.construct.html">SWFAction::__construct</a> — Creates a new SWFAction</li></ul></li><li><a href="class.swfbitmap.html">SWFBitmap</a> — The SWFBitmap class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfbitmap.construct.html">SWFBitmap::__construct</a> — Loads Bitmap object</li><li><a href="swfbitmap.getheight.html">SWFBitmap::getHeight</a> — Returns the bitmap's height</li><li><a href="swfbitmap.getwidth.html">SWFBitmap::getWidth</a> — Returns the bitmap's width</li></ul></li><li><a href="class.swfbutton.html">SWFButton</a> — The SWFButton class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfbutton.addaction.html">SWFButton::addAction</a> — Adds an action</li><li><a href="swfbutton.addasound.html">SWFButton::addASound</a> — Associates a sound with a button transition</li><li><a href="swfbutton.addshape.html">SWFButton::addShape</a> — Adds a shape to a button</li><li><a href="swfbutton.construct.html">SWFButton::__construct</a> — Creates a new Button</li><li><a href="swfbutton.setaction.html">SWFButton::setAction</a> — Sets the action</li><li><a href="swfbutton.setdown.html">SWFButton::setDown</a> — Alias for addShape(shape, SWFBUTTON_DOWN)</li><li><a href="swfbutton.sethit.html">SWFButton::setHit</a> — Alias for addShape(shape, SWFBUTTON_HIT)</li><li><a href="swfbutton.setmenu.html">SWFButton::setMenu</a> — enable track as menu button behaviour</li><li><a href="swfbutton.setover.html">SWFButton::setOver</a> — Alias for addShape(shape, SWFBUTTON_OVER)</li><li><a href="swfbutton.setup.html">SWFButton::setUp</a> — Alias for addShape(shape, SWFBUTTON_UP)</li></ul></li><li><a href="class.swfdisplayitem.html">SWFDisplayItem</a> — The SWFDisplayItem class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfdisplayitem.addaction.html">SWFDisplayItem::addAction</a> — Adds this SWFAction to the given SWFSprite instance</li><li><a href="swfdisplayitem.addcolor.html">SWFDisplayItem::addColor</a> — Adds the given color to this item's color transform</li><li><a href="swfdisplayitem.endmask.html">SWFDisplayItem::endMask</a> — Another way of defining a MASK layer</li><li><a href="swfdisplayitem.getrot.html">SWFDisplayItem::getRot</a> — 说明</li><li><a href="swfdisplayitem.getx.html">SWFDisplayItem::getX</a> — 说明</li><li><a href="swfdisplayitem.getxscale.html">SWFDisplayItem::getXScale</a> — 说明</li><li><a href="swfdisplayitem.getxskew.html">SWFDisplayItem::getXSkew</a> — 说明</li><li><a href="swfdisplayitem.gety.html">SWFDisplayItem::getY</a> — 说明</li><li><a href="swfdisplayitem.getyscale.html">SWFDisplayItem::getYScale</a> — 说明</li><li><a href="swfdisplayitem.getyskew.html">SWFDisplayItem::getYSkew</a> — 说明</li><li><a href="swfdisplayitem.move.html">SWFDisplayItem::move</a> — Moves object in relative coordinates</li><li><a href="swfdisplayitem.moveto.html">SWFDisplayItem::moveTo</a> — Moves object in global coordinates</li><li><a href="swfdisplayitem.multcolor.html">SWFDisplayItem::multColor</a> — Multiplies the item's color transform</li><li><a href="swfdisplayitem.remove.html">SWFDisplayItem::remove</a> — Removes the object from the movie</li><li><a href="swfdisplayitem.rotate.html">SWFDisplayItem::rotate</a> — Rotates in relative coordinates</li><li><a href="swfdisplayitem.rotateto.html">SWFDisplayItem::rotateTo</a> — Rotates the object in global coordinates</li><li><a href="swfdisplayitem.scale.html">SWFDisplayItem::scale</a> — Scales the object in relative coordinates</li><li><a href="swfdisplayitem.scaleto.html">SWFDisplayItem::scaleTo</a> — Scales the object in global coordinates</li><li><a href="swfdisplayitem.setdepth.html">SWFDisplayItem::setDepth</a> — Sets z-order</li><li><a href="swfdisplayitem.setmasklevel.html">SWFDisplayItem::setMaskLevel</a> — Defines a MASK layer at level</li><li><a href="swfdisplayitem.setmatrix.html">SWFDisplayItem::setMatrix</a> — Sets the item's transform matrix</li><li><a href="swfdisplayitem.setname.html">SWFDisplayItem::setName</a> — Sets the object's name</li><li><a href="swfdisplayitem.setratio.html">SWFDisplayItem::setRatio</a> — Sets the object's ratio</li><li><a href="swfdisplayitem.skewx.html">SWFDisplayItem::skewX</a> — Sets the X-skew</li><li><a href="swfdisplayitem.skewxto.html">SWFDisplayItem::skewXTo</a> — Sets the X-skew</li><li><a href="swfdisplayitem.skewy.html">SWFDisplayItem::skewY</a> — Sets the Y-skew</li><li><a href="swfdisplayitem.skewyto.html">SWFDisplayItem::skewYTo</a> — Sets the Y-skew</li></ul></li><li><a href="class.swffill.html">SWFFill</a> — The SWFFill class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swffill.moveto.html">SWFFill::moveTo</a> — Moves fill origin</li><li><a href="swffill.rotateto.html">SWFFill::rotateTo</a> — Sets fill's rotation</li><li><a href="swffill.scaleto.html">SWFFill::scaleTo</a> — Sets fill's scale</li><li><a href="swffill.skewxto.html">SWFFill::skewXTo</a> — Sets fill x-skew</li><li><a href="swffill.skewyto.html">SWFFill::skewYTo</a> — Sets fill y-skew</li></ul></li><li><a href="class.swffont.html">SWFFont</a> — The SWFFont class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swffont.construct.html">SWFFont::__construct</a> — Loads a font definition</li><li><a href="swffont.getascent.html">SWFFont::getAscent</a> — Returns the ascent of the font, or 0 if not available</li><li><a href="swffont.getdescent.html">SWFFont::getDescent</a> — Returns the descent of the font, or 0 if not available</li><li><a href="swffont.getleading.html">SWFFont::getLeading</a> — Returns the leading of the font, or 0 if not available</li><li><a href="swffont.getshape.html">SWFFont::getShape</a> — Returns the glyph shape of a char as a text string</li><li><a href="swffont.getutf8width.html">SWFFont::getUTF8Width</a> — Calculates the width of the given string in this font at full height</li><li><a href="swffont.getwidth.html">SWFFont::getWidth</a> — Returns the string's width</li></ul></li><li><a href="class.swffontchar.html">SWFFontChar</a> — The SWFFontChar class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swffontchar.addchars.html">SWFFontChar::addChars</a> — Adds characters to a font for exporting font</li><li><a href="swffontchar.addutf8chars.html">SWFFontChar::addUTF8Chars</a> — Adds characters to a font for exporting font</li></ul></li><li><a href="class.swfgradient.html">SWFGradient</a> — The SWFGradient class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfgradient.addentry.html">SWFGradient::addEntry</a> — Adds an entry to the gradient list</li><li><a href="swfgradient.construct.html">SWFGradient::__construct</a> — Creates a gradient object</li></ul></li><li><a href="class.swfmorph.html">SWFMorph</a> — The SWFMorph class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfmorph.construct.html">SWFMorph::__construct</a> — Creates a new SWFMorph object</li><li><a href="swfmorph.getshape1.html">SWFMorph::getShape1</a> — Gets a handle to the starting shape</li><li><a href="swfmorph.getshape2.html">SWFMorph::getShape2</a> — Gets a handle to the ending shape</li></ul></li><li><a href="class.swfmovie.html">SWFMovie</a> — The SWFMovie class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfmovie.add.html">SWFMovie::add</a> — Adds any type of data to a movie</li><li><a href="swfmovie.addexport.html">SWFMovie::addExport</a> — 说明</li><li><a href="swfmovie.addfont.html">SWFMovie::addFont</a> — 说明</li><li><a href="swfmovie.construct.html">SWFMovie::__construct</a> — Creates a new movie object, representing an SWF version 4 movie</li><li><a href="swfmovie.importchar.html">SWFMovie::importChar</a> — 说明</li><li><a href="swfmovie.importfont.html">SWFMovie::importFont</a> — 说明</li><li><a href="swfmovie.labelframe.html">SWFMovie::labelFrame</a> — Labels a frame</li><li><a href="swfmovie.nextframe.html">SWFMovie::nextFrame</a> — Moves to the next frame of the animation</li><li><a href="swfmovie.output.html">SWFMovie::output</a> — Dumps your lovingly prepared movie out</li><li><a href="swfmovie.remove.html">SWFMovie::remove</a> — Removes the object instance from the display list</li><li><a href="swfmovie.save.html">SWFMovie::save</a> — Saves the SWF movie in a file</li><li><a href="swfmovie.savetofile.html">SWFMovie::saveToFile</a> — 说明</li><li><a href="swfmovie.setbackground.html">SWFMovie::setbackground</a> — Sets the background color</li><li><a href="swfmovie.setdimension.html">SWFMovie::setDimension</a> — Sets the movie's width and height</li><li><a href="swfmovie.setframes.html">SWFMovie::setFrames</a> — Sets the total number of frames in the animation</li><li><a href="swfmovie.setrate.html">SWFMovie::setRate</a> — Sets the animation's frame rate</li><li><a href="swfmovie.startsound.html">SWFMovie::startSound</a> — 说明</li><li><a href="swfmovie.stopsound.html">SWFMovie::stopSound</a> — 说明</li><li><a href="swfmovie.streammp3.html">SWFMovie::streamMP3</a> — Streams a MP3 file</li><li><a href="swfmovie.writeexports.html">SWFMovie::writeExports</a> — 说明</li></ul></li><li><a href="class.swfprebuiltclip.html">SWFPrebuiltClip</a> — The SWFPrebuiltClip class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfprebuiltclip.construct.html">SWFPrebuiltClip::__construct</a> — Returns a SWFPrebuiltClip object</li></ul></li><li><a href="class.swfshape.html">SWFShape</a> — The SWFShape class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfshape.addfill.html">SWFShape::addFill</a> — Adds a solid fill to the shape</li><li><a href="swfshape.construct.html">SWFShape::__construct</a> — Creates a new shape object</li><li><a href="swfshape.drawarc.html">SWFShape::drawArc</a> — Draws an arc of radius r centered at the current location, from angle startAngle to angle endAngle measured clockwise from 12 o'clock</li><li><a href="swfshape.drawcircle.html">SWFShape::drawCircle</a> — Draws a circle of radius r centered at the current location, in a counter-clockwise fashion</li><li><a href="swfshape.drawcubic.html">SWFShape::drawCubic</a> — Draws a cubic bezier curve using the current position and the three given points as control points</li><li><a href="swfshape.drawcubicto.html">SWFShape::drawCubicTo</a> — Draws a cubic bezier curve using the current position and the three given points as control points</li><li><a href="swfshape.drawcurve.html">SWFShape::drawCurve</a> — Draws a curve (relative)</li><li><a href="swfshape.drawcurveto.html">SWFShape::drawCurveTo</a> — Draws a curve</li><li><a href="swfshape.drawglyph.html">SWFShape::drawGlyph</a> — Draws the first character in the given string into the shape using the glyph definition from the given font</li><li><a href="swfshape.drawline.html">SWFShape::drawLine</a> — Draws a line (relative)</li><li><a href="swfshape.drawlineto.html">SWFShape::drawLineTo</a> — Draws a line</li><li><a href="swfshape.movepen.html">SWFShape::movePen</a> — Moves the shape's pen (relative)</li><li><a href="swfshape.movepento.html">SWFShape::movePenTo</a> — Moves the shape's pen</li><li><a href="swfshape.setleftfill.html">SWFShape::setLeftFill</a> — Sets left rasterizing color</li><li><a href="swfshape.setline.html">SWFShape::setLine</a> — Sets the shape's line style</li><li><a href="swfshape.setrightfill.html">SWFShape::setRightFill</a> — Sets right rasterizing color</li></ul></li><li><a href="class.swfsound.html">SWFSound</a> — The SWFSound class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfsound.construct.html">SWFSound::__construct</a> — Returns a new SWFSound object from given file</li></ul></li><li><a href="class.swfsoundinstance.html">SWFSoundInstance</a> — The SWFSoundInstance class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfsoundinstance.loopcount.html">SWFSoundInstance::loopCount</a> — 说明</li><li><a href="swfsoundinstance.loopinpoint.html">SWFSoundInstance::loopInPoint</a> — 说明</li><li><a href="swfsoundinstance.loopoutpoint.html">SWFSoundInstance::loopOutPoint</a> — 说明</li><li><a href="swfsoundinstance.nomultiple.html">SWFSoundInstance::noMultiple</a> — 说明</li></ul></li><li><a href="class.swfsprite.html">SWFSprite</a> — The SWFSprite class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfsprite.add.html">SWFSprite::add</a> — Adds an object to a sprite</li><li><a href="swfsprite.construct.html">SWFSprite::__construct</a> — Creates a movie clip (a sprite)</li><li><a href="swfsprite.labelframe.html">SWFSprite::labelFrame</a> — Labels frame</li><li><a href="swfsprite.nextframe.html">SWFSprite::nextFrame</a> — Moves to the next frame of the animation</li><li><a href="swfsprite.remove.html">SWFSprite::remove</a> — Removes an object to a sprite</li><li><a href="swfsprite.setframes.html">SWFSprite::setFrames</a> — Sets the total number of frames in the animation</li><li><a href="swfsprite.startsound.html">SWFSprite::startSound</a> — 说明</li><li><a href="swfsprite.stopsound.html">SWFSprite::stopSound</a> — 说明</li></ul></li><li><a href="class.swftext.html">SWFText</a> — The SWFText class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swftext.addstring.html">SWFText::addString</a> — Draws a string</li><li><a href="swftext.addutf8string.html">SWFText::addUTF8String</a> — Writes the given text into this SWFText object at the current pen position,
 using the current font, height, spacing, and color</li><li><a href="swftext.construct.html">SWFText::__construct</a> — Creates a new SWFText object</li><li><a href="swftext.getascent.html">SWFText::getAscent</a> — Returns the ascent of the current font at its current size, or 0 if not available</li><li><a href="swftext.getdescent.html">SWFText::getDescent</a> — Returns the descent of the current font at its current size, or 0 if not available</li><li><a href="swftext.getleading.html">SWFText::getLeading</a> — Returns the leading of the current font at its current size, or 0 if not available</li><li><a href="swftext.getutf8width.html">SWFText::getUTF8Width</a> — calculates the width of the given string in this text objects current font and size</li><li><a href="swftext.getwidth.html">SWFText::getWidth</a> — Computes string's width</li><li><a href="swftext.moveto.html">SWFText::moveTo</a> — Moves the pen</li><li><a href="swftext.setcolor.html">SWFText::setColor</a> — Sets the current text color</li><li><a href="swftext.setfont.html">SWFText::setFont</a> — Sets the current font</li><li><a href="swftext.setheight.html">SWFText::setHeight</a> — Sets the current font height</li><li><a href="swftext.setspacing.html">SWFText::setSpacing</a> — Sets the current font spacing</li></ul></li><li><a href="class.swftextfield.html">SWFTextField</a> — The SWFTextField class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swftextfield.addchars.html">SWFTextField::addChars</a> — adds characters to a font that will be available within a textfield</li><li><a href="swftextfield.addstring.html">SWFTextField::addString</a> — Concatenates the given string to the text field</li><li><a href="swftextfield.align.html">SWFTextField::align</a> — Sets the text field alignment</li><li><a href="swftextfield.construct.html">SWFTextField::__construct</a> — Creates a text field object</li><li><a href="swftextfield.setbounds.html">SWFTextField::setBounds</a> — Sets the text field width and height</li><li><a href="swftextfield.setcolor.html">SWFTextField::setColor</a> — Sets the color of the text field</li><li><a href="swftextfield.setfont.html">SWFTextField::setFont</a> — Sets the text field font</li><li><a href="swftextfield.setheight.html">SWFTextField::setHeight</a> — Sets the font height of this text field font</li><li><a href="swftextfield.setindentation.html">SWFTextField::setIndentation</a> — Sets the indentation of the first line</li><li><a href="swftextfield.setleftmargin.html">SWFTextField::setLeftMargin</a> — Sets the left margin width of the text field</li><li><a href="swftextfield.setlinespacing.html">SWFTextField::setLineSpacing</a> — Sets the line spacing of the text field</li><li><a href="swftextfield.setmargins.html">SWFTextField::setMargins</a> — Sets the margins width of the text field</li><li><a href="swftextfield.setname.html">SWFTextField::setName</a> — Sets the variable name</li><li><a href="swftextfield.setpadding.html">SWFTextField::setPadding</a> — Sets the padding of this textfield</li><li><a href="swftextfield.setrightmargin.html">SWFTextField::setRightMargin</a> — Sets the right margin width of the text field</li></ul></li><li><a href="class.swfvideostream.html">SWFVideoStream</a> — The SWFVideoStream class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swfvideostream.construct.html">SWFVideoStream::__construct</a> — Returns a SWFVideoStream object</li><li><a href="swfvideostream.getnumframes.html">SWFVideoStream::getNumFrames</a> — Returns the number of frames in the video</li><li><a href="swfvideostream.setdimension.html">SWFVideoStream::setDimension</a> — Sets video dimension</li></ul></li></ul></div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="harudestination.setxyz.html">HaruDestination::setXYZ</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.ming.html">简介</a></div>
 <div class="up"><a href="refs.utilspec.nontext.html">非文本内容的 MIME 输出</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
